home *** CD-ROM | disk | FTP | other *** search
/ DOpus Plus / DOpus Plus.iso / Tutorial / C Guide / Simple_Module2 / includes / ExampleRequest.h < prev    next >
C/C++ Source or Header  |  1998-08-22  |  863b  |  30 lines

  1. /*******************************************************************
  2.  
  3.    ExampleRequest.h
  4.  
  5. *********************************************************************/
  6. // at first our globally data
  7.  
  8. #include "includes/Project.h"
  9.  
  10. /********************************************************************/
  11. // we would not need here any stuff, but it's nice for learning about
  12. // and so we show the reversed arguments in the requester too and the
  13. // count of signs...
  14.  
  15. typedef struct _ERData
  16. {
  17.    char   buffer[256]; // here we store the reversed copy
  18.     char   output[256]; // and here we do formatting
  19.    ULONG  count;       // counter of signs
  20.    STRPTR ptr_read;    
  21.    STRPTR ptr_write;
  22.  
  23. }  ERData;
  24.  
  25.  
  26. /********************************************************************/
  27. // our function prototype
  28.  
  29. void ExampleRequest( STRPTR args, struct Screen *screen, IPCData *ipc );
  30.